embedProfiles

val embedProfiles: Boolean = false

Write the color profiles into the PDF: the Output profile of outputColorSpace as the OutputIntent with the condition Custom. /DefaultCMYK names the document CMYK profile that the DeviceCMYK values are written in. The file has none when that profile is the Output profile, or when outputProfileMode is not OutputProfileMode.OFF in a CMYK output. Then the OutputIntent describes the DeviceCMYK values. An RGB output without print marks has none either. sRGB becomes /DefaultRGB, except in an RGB export whose outputProfileMode is not OutputProfileMode.OFF. The file makes no PDF/X conformance claim. With outputProfileMode, each image keeps its samples. A tagged image keeps its profile as its tag, unless the engine cannot use that profile and decodes the image to sRGB. An untagged CMYK JPEG gets the document CMYK profile, so every embedding export resolves that profile. The export waits for that profile, and fails with EngineErrorCode.COLOR_PROFILE_MISSING only when the bundled fallback does not load either. An untagged RGB or gray image stays untagged. A PNG gamma chunk can give an RGB image a color space, which then tags it. A CMYK JPEG whose EXIF orientation is not up is written as RGB samples. An image under an effect, in a blurred group or with an imported definition is written from its RGB raster. When the export must decode a CMYK JPEG and cannot, as with a side above 20000 pixels, it fails with EngineErrorCode.COLOR_IMAGE_DECODE_FAILED. With exportPdfWithHighCompatibility off, a JPEG, PNG or WebP image is written at its native size. An image that does not fit in memory at that size fails the export with EngineErrorCode.ENCODE_INSUFFICIENT_RESOURCES. A JPEG keeps its original bytes when its EXIF orientation is up, and a CMYK JPEG also needs the Adobe marker. A PDF export waits for an Output profile that is still loading. It fails when the slot is empty or the profile does not load, and it accepts a profile that cannot convert. A profile that never answers fails the export with EngineErrorCode.COLOR_PROFILE_MISSING after the time that the setting exportPendingTimeoutSeconds allows. A PNG or JPEG export writes one profile into the file. With OutputProfileMode.CONVERT or OutputProfileMode.ASSIGN, it is the exact Output RGB profile, and OutputProfileMode.ASSIGN writes it also without this option. With OutputProfileMode.OFF, it is the profile of the working space, and the export does not read the Output profile. A TGA, raw data or SVG export fails with EngineErrorCode.ENCODE_OUTPUT_PROFILE_UNSUPPORTED_FORMAT, and a color mask export with EngineErrorCode.ENCODE_COLOR_MASK_OUTPUT_PROFILE_UNSUPPORTED. The default value is false.